#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int my_strlen(char* arr)
{
    int i = 0;
    while (*arr != '\0')
    {
        arr++;
        i++;
    }
    return i;
}
int main()
{
    char arr[] = "abcdefg"; 
    printf("%d\n", my_strlen(arr));
    return 0;
}






#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int my_strlen(char* arr)
{
    if (*arr != '\0')
        return 1 + my_strlen(arr + 1);
    else
        return 0;
}
int main()
{
    char arr[] = "abcdefg";
    printf("%d\n", my_strlen(arr));
    return 0;
}



